/**
 * Created by Skye on 2018/3/24.
 */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './loader.less';

export default class Loader extends Component{

  render() {
    const { spinning } = this.props;
    return(
      <div className={`loader fullScreen ${spinning ? "": "hidden"}`}>
        <div className="warpper">
          <div className="inner" />
          <div className="text" >LOADING</div>
        </div>
      </div>
    )
  }

}

Loader.propTypes = {
  spinning: PropTypes.bool
}